package com.gtw.modules.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.gtw.modules.entity.TbRaidDetails;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 佣金明细
 */
@Mapper
@Repository
public interface TbRaidDetailsDao extends BaseDao<TbRaidDetails>{

    int deleteByPrimaryKey(Integer id);

    int insert(TbRaidDetails record);

    int insertSelective(TbRaidDetails record);

    TbRaidDetails selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbRaidDetails record);

    int updateByPrimaryKey(TbRaidDetails record);

    List<TbRaidDetails> queryPageList(Page<TbRaidDetails> page, Map<String, Object> map);

    /**
     * 根据受益人ID查询
     */
    List<TbRaidDetails> queryBybenefit(Integer benefitUserid);

    /**
     * 根据触发人ID查询
     */
    List<TbRaidDetails> queryBytrigger(Integer triggerUserid);
}